<?PHP

	class tpl_register {

		public static function registration_disabled($message){
			return tpl_welcome::simple_message($message,'register');
		}
		
		public static function account_created($message){
			return tpl_welcome::simple_message($message,'register');
		}
		
		public static function register_page($form){
			
			$GLOBALS['OUTPUT']->page_id = 'register';
			
			$form_html = tpl_form::printform($form);
			$submit = tpl_form::submitbutton($GLOBALS['LANG']->lang_intro->register);
				
			return tpl_globals::header() .
				tpl_globals::global_styles_shared() .
				tpl_globals::outer_global_styles() .
				tpl_globals::welcome_header('register') .
				tpl_globals::form_styles2() .
				<<<EOV
<script type='text/javascript'>
	window.onload = function(){ document.getElementById('iduname').focus() };
</script>
<div style='width: 400px; margin: auto;'>
	<form action='./index.php?act=register{$GLOBALS['OUTPUT']->ses}' method='post' accept-charset='UTF-8'>
	{$form_html}
	<div class='form_container'>
		<div class='row end'>
			{$submit}
		</div>
	</div>
	</form>
</div>
EOV
.
				tpl_globals::welcome_footer() .
				tpl_globals::footer();
		}
		
	}

?>